<?php
$v_record_id_list = "";
if(isset($_REQUEST['hdn_record_id_list'])){
	$v_record_id_list = $_REQUEST['hdn_record_id_list'];
}
if($v_record_id_list=="" ||is_null($v_record_id_list)){
	$v_record_id_list=$_REQUEST['hdn_record_id'];
}
$v_recordtype_name = $_REQUEST['hdn_recordtype_name']; 

if(_is_sqlserver()){
	if(sizeof(explode(',',$v_record_id_list))==1){
		$sql = "Exec Onegate_RecordGetSingle_NieuVV " . $v_record_id_list ;
		$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
		$arr_single_record = $ado_conn->GetRow($sql);	
	}else{
		$sql = "Exec Onegate_RecordGetAllForIdList "; //SP nay dung de lay ra tat ca cac record theo id
		$sql = $sql ."'". $v_record_id_list."'" ;
		$ado_conn->SetFetchMode(ADODB_FETCH_NUM);
		$arr_all_record = $ado_conn->GetAll($sql);
	}
	
	
	$v_count = sizeof($arr_all_record);
}?>



